import DeptAPI from '@/api/dept'
import type { ISearchConfig } from '@/components/PageSearch/index.vue'

const searchConfig: ISearchConfig = {
  pageName: 'sys:user',
  formItems: [
    {
      type: 'input',
      label: '用户信息',
      prop: 'keywords',
      attrs: {
        placeholder: '用户编号/昵称/手机号码',
        clearable: true,
        style: {
          width: '200px',
        },
      },
    },
    {
      type: 'select',
      label: '注册来源',
      prop: 'status',
      attrs: {
        placeholder: '全部',
        clearable: true,
        style: {
          width: '100px',
        },
      },
      options: [
        { label: '启用', value: 1 },
        { label: '禁用', value: 0 },
      ],
    },
    {
      type: 'date-picker',
      label: '注册时间',
      prop: 'createAt',
      attrs: {
        'type': 'daterange',
        'range-separator': '~',
        'start-placeholder': '开始时间',
        'end-placeholder': '截止时间',
        'value-format': 'YYYY-MM-DD',
        'style': {
          width: '240px',
        },
      },
    },
  ],
}

export default searchConfig
